package com.neelsys.visualisation.repository;

import java.util.List;

import org.springframework.data.neo4j.repository.GraphRepository;
import org.springframework.data.neo4j.repository.NamedIndexRepository;
import org.springframework.data.neo4j.repository.RelationshipOperationsRepository;

import com.neelsys.visualisation.domain.CourseDesignator;
import com.neelsys.visualisation.domain.CourseLevelEnum;
import com.neelsys.visualisation.domain.CourseStreamEnum;

public interface CourseDesignatorRepository extends
		GraphRepository<CourseDesignator>,
		RelationshipOperationsRepository<CourseDesignator>,
		NamedIndexRepository<CourseDesignator> {

	CourseDesignator findByCourseLevelAndCourseStream(
			CourseLevelEnum courseLevelEnum, CourseStreamEnum courseStreamEnum);
	
	List<CourseDesignator> findByCourseLevel(CourseLevelEnum courseLevelEnum);

}
